﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GameEngine.Moves;

namespace CliffCrowds
{
    public class CliffCrowdsAIPlayer : GameEngine.Players.AIPlayer
    {
        public CliffCrowdsAIPlayer(string name)
            : base(name)
        {

        }

        public override void GetNextMoveAsync(Action<GameEngine.Engine.MoveDetails> onMove)
        {
            var details = new GameEngine.Engine.MoveDetails { Move = new CliffCrowdsMove() };
            onMove(details);
            if( details.IllegalMoves.Any() )
            {
                // log the illegal moves
            }
        }
    }
}
